//
//  HostMode.swift
//  OnemeetingDemo
//
//  Created by zhangheng on 2019/11/19.
//  Copyright © 2019 www.onemeeting.1meetingIos. All rights reserved.
//

import Foundation


class HostMode: HandyJSON {
    var code:NSNumber            = 0
    var time:NSNumber?
    var count:NSNumber?
    var status:String?
    var msg:String?
    var hostname:String?
    var password:String?
    
    var scene:Int?
    var url:String?
    required init() {}
}

class SCloudMode: HandyJSON {
    var code:NSNumber                 = 0
    
    /**
    焦点
    */
    var focusid:String                = mt_none
    
    /**
    禁止上麦
    */
    var is_mike:NSNumber              = 0
    
    /**
    全体静音
    */
    var is_speak:NSNumber             = 0
    
    /**
    屏幕共享
    */
    var is_share:NSNumber             = 0
    
    /**
    禁止弹幕
    */
    var is_silent:NSNumber            = 0
    
    required init() {}
}


extension NSNumber {
    var bool:Bool {
        return self==0 ? false:true
    }
}
extension Int {
    var bool:Bool {
        return self==0 ? false:true
    }
}

